{"version":3,"file":"main.bundle.map.js","names":["this","BX","exports","main_core_events","landing_env","landing_loc","landing_ui_panel_content","landing_ui_panel_saveblock","landing_sliderhacks","landing_pageobject","main_core","landing_backend","hasBlock","element","querySelector","hasCreateButton","onAnimationEnd","animationName","Promise","resolve","onAnimationEndListener","event","Event","bind","isEmpty","value","Type","isNil","isArrayLike","length","isObject","Object","keys","_classPrivateMethodInitSpec","obj","privateSet","_checkPrivateRedeclaration","add","_classPrivateFieldInitSpec","privateMap","set","privateCollection","has","TypeError","_classPrivateMethodGet","receiver","fn","_postMessages","WeakMap","_currentMobileTop","_mouseEntered","_disableControls","_currentMousePosition","_blocksMobileTops","_registerListeners","WeakSet","_createBlockObject","_registerBlocks","_registerNewBlock","ExternalControls","babelHelpers","classCallCheck","writable","mode","register","changeState","editorEnable","showControls","showBlockControls","hideAll","backendAction","Main","isExternalControlsEnabled","_registerListeners2","call","createClass","key","onBackendAction","action","data","classPrivateFieldSet","postExternalCommand","classPrivateFieldGet","isControlsExternal","Dom","hasClass","document","body","recalculateTops","resetMobileTop","_this","toConsumableArray","querySelectorAll","map","block","blockRect","getBoundingClientRect","height","push","blockId","parseInt","getAttribute","top","onMobileMouseMove","recalculateTopsIfExternals","i","c","payload","window","parent","postMessage","location","origin","listenExternalCommands","_this2","Landing","PageObject","getBlocks","get","successCallback","setTimeout","onDesignerBlockClick","onShowContentPanel","onStyleShow","moveDown","moveUp","deleteBlock","onStateChange","getInstance","onCutBlock","onCopyBlock","onPasteBlock","_registerNewBlock2","showFeedbackForm","saveBlock","UI","Panel","EditorPanel","hide","_this3","_registerBlocks2","addEventListener","y","addCustomEvent","type","topInPercent","blockData","getData","id","state","_createBlockObject2","isEnabled","permissions","allowDesignBlock","isDesignBlockAllowed","allowModifyStyles","isStyleModifyAllowed","allowEditContent","isEditBlockAllowed","allowSorting","allowRemove","isRemoveBlockAllowed","allowChangeState","isChangeStateBlockAllowed","allowPaste","isPasteBlockAllowed","allowSaveInLibrary","isSaveBlockInLibraryAllowed","_this4","blocksCollection","blocks","_templateObject","getMode","_EventEmitter","inherits","createInstance","rootWindow","getRootWindow","instance","Reflection","namespace","isEditorMode","scrollHeight","Math","max","documentElement","offsetHeight","clientHeight","scrollTop","possibleConstructorReturn","getPrototypeOf","setEventNamespace","options","Env","getOptions","freeze","currentBlock","isDesignBlockModeFlag","loadedDeps","cache","Cache","MemoryCache","externalControls","onSliderFormLoaded","assertThisInitialized","onBlockDelete","adjustEmptyAreas","StatusPanel","setLastModified","lastModified","show","pageType","getType","TYPE_KNOWLEDGE","TYPE_GROUP","mainArea","isDomNode","addClass","isCrmFormPage","specialType","isDesignBlockMode","getSaveBlockPanel","panel","SaveBlock","layout","hidden","content","append","getBlocksPanel","remember","blocksPanel","createBlocksPanel","sidebarButtons","default_section","click","hideBlocksPanel","getLayoutAreas","concat","createInsertBlockButton","area","button","Button","Plus","text","Loc","getMessage","on","showBlocksPanel","onCreateButtonMouseover","onCreateButtonMouseout","areas","createText","setText","clearTimeout","fadeTimeout","filter","currentArea","forEach","removeClass","initEmptyArea","innerHTML","destroyEmptyArea","remove","main","isAllEmpty","some","enableControls","disableControls","isControlsEnabled","makeControlsInternal","onCustomEvent","makeControlsExternal","setDeviceCode","code","setAttribute","getDeviceCode","setTouchDevice","setNoTouchDevice","appendBlock","withoutAnimation","Tag","render","taggedTemplateLiteral","then","insertToBlocksFlow","insertBefore","overlay","disableAddBlockButtons","showSaveBlock","panels","buttons","disable","enableAddBlockButtons","enable","categories","Content","title","className","scrollAnimation","subscribe","categoryId","hasItems","items","isPopular","isSeparator","separator","appendSidebarButton","createBlockPanelSidebarButton","SidebarButton","onClick","showSliderFeedbackForm","Runtime","loadExtension","bitrix24","server_name","siteId","site_id","siteUrl","url","siteTemplate","xml_id","productType","typeproduct","params","Feedback","Form","open","random","forms","getFeedbackFormOptions","presets","zones","lang","sec","sliderFormLoader","target","initFeedbackForm","w","d","u","b","Bitrix24FormObject","arguments","ref","s","createElement","r","Date","async","src","h","getElementsByTagName","parentNode","category","name","child","onBlocksListCategoryChange","addNewBlockToCategory","blockCode","lastBlocks","last","unshift","removeBlockFromList","removed","undefined","indexOf","splice","activeCategoryButton","find","getTemplateCode","_Env$getInstance$getO","tplCode","split","_this5","templateCode","classList","Set","blockKey","getBlockFromRepository","appendCard","createBlockCard","blockTplCode","requestAnimationFrame","localStorage","landingBlockId","landingBlockName","manifest","landingBlockAction","requiredUserAction","JSON","stringify","requiredUserActionOptions","err","node","callback","_this6","requestBody","lid","AFTER_ID","RETURN_CONTENT","Backend","batch","res","addBlock","result","codeOriginal","self","loadBlockDeps","blockRes","oldBlock","Block","sections","access","active","Text","toBoolean","php","designed","anchor","dynamicParams","repoId","runBlockScripts","console","warn","onAddBlock","restoreId","_this7","preventHistory","toNumber","showBlockLoader","loadBlock","p","hideBlockLoader","isCurrentBlockAvailable","insertAfter","prepend","getBlockLoader","blockLoader","Loader","size","blockLoaderContainer","create","props","children","_this8","ext","processHTML","content_ext","isArray","SCRIPT","item","isInternal","loadedScripts","scriptsCount","js","STYLE","css","resPromise","onLoad","loadScript","JS","scripts","ajax","processScripts","_this9","attr","fields","ACTIVE","CODE","isBoolean","History","editMode","Card","BlockPreviewCard","image","preview","app_expired","favorite","favoriteMy","repo_id","isNew","showOverlay","hideOverlay","reloadSlider","SliderHacks","EventEmitter","defineProperty"],"sources":["main.bundle.js"],"mappings":"AAAAA,KAAKC,GAAKD,KAAKC,IAAM,CAAC,GACrB,SAAUC,EAAQC,EAAiBC,EAAYC,EAAYC,EAAyBC,EAA2BC,EAAoBC,EAAmBC,EAAUC,GAChK,aAOA,SAASC,EAASC,GAChB,QAASA,KAAaA,EAAQC,cAAc,iBAC9C,CAOA,SAASC,EAAgBF,GACvB,QAASA,KAAaA,EAAQC,cAAc,uCAC9C,CAEA,SAASE,EAAeH,EAASI,GAC/B,OAAO,IAAIC,SAAQ,SAAUC,GAC3B,IAAIC,EAAyB,SAASA,EAAuBC,GAC3D,IAAKJ,GAAiBI,EAAMJ,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